package com.csaba.connector.dummy;

import java.util.logging.Logger;

import com.csaba.connector.ServiceException;
import com.csaba.connector.model.Session;
import com.csaba.connector.service.LogoutService;
import com.csaba.util.LoggerHelper;

public class DummyLogoutService implements LogoutService
{
	private final static Logger logger = LoggerHelper.getDefaultLogger();

	@Override
	public void execute( final Session session ) throws ServiceException
	{
		logger.info("Dummy: session closed:" + session);
		Codes.waitABit();
		session.invalidateSession();
	}

}
